package com.itshidu.game.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

import com.itshidu.game.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 战斗记录
 * </p>
 *
 * @author Jack.Xia
 * @since 2019-12-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("g_fight_log")
public class FightLog extends BaseEntity {

    private static final long serialVersionUID=3L;

    /**
     * 挑战者
     */
    private Integer heroId;

    /**
     * 被挑战者
     */
    private Integer targetId;

    /**
     * 胜利者
     */
    private Integer winnerId;

    /**
     * 时间
     */
    private Date created;

    /**
     * 随机数种子
     */
    private Long seed;


    @TableField(exist = false)
    private Hero hero;
    @TableField(exist = false)
    private Hero target;
    @TableField(exist = false)
    private Hero winner;
}
